import request from '@/utils/request'

/* 公共管网计划用水管理台账表 */
// 列表查询
const publicNetworkPlanWaterList = function (params = {}) {
  return request({
    url: '/zy-api/api/swPlanPipe/findList',
    method: 'post',
    data: params
  })
}

// 新增
const addPublicNetworkPlanWater = function (params = {}) {
  return request({
    url: '/zy-api/api/swPlanPipe/add',
    method: 'post',
    data: params
  })
}

// 修改
const editPublicNetworkPlanWater = function (params = {}) {
  return request({
    url: '/zy-api/api/swPlanPipe/update',
    method: 'post',
    data: params
  })
}

// 删除
const delPublicNetworkPlanWater = function (params = {}) {
  return request({
    url: '/zy-api/api/swPlanPipe/delete',
    method: 'post',
    data: params
  })
}

// 审核
const auditPublicNetworkPlanWater = function (params = {}) {
  return request({
    url: '/zy-api/api/swPlanPipe/Review',
    method: 'post',
    data: params
  })
}

export {
  publicNetworkPlanWaterList,
  addPublicNetworkPlanWater,
  editPublicNetworkPlanWater,
  delPublicNetworkPlanWater,
  auditPublicNetworkPlanWater
}